# tasks/serializers.py
from rest_framework import serializers
from .models import Task

class TaskSerializer(serializers.ModelSerializer):
    class Meta:
        model = Task
        fields = ['id', 'user', 'parent', 'path', 'position', 'type', 'title', 'color', 'target_date', 'timer_mode', 'duration', 'created_at', 'updated_at']
